using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class Stand_DiameterMap : EntityTypeConfiguration<Stand_Diameter>
    {
        public Stand_DiameterMap()
        {
            // Primary Key
            this.HasKey(t => t.Dia_ID);

            // Properties
            this.Property(t => t.Diameter)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("Stand_Diameter");
            this.Property(t => t.Dia_ID).HasColumnName("Dia_ID");
            this.Property(t => t.Stand_ID).HasColumnName("Stand_ID");
            this.Property(t => t.Diameter).HasColumnName("Diameter");
            this.Property(t => t.ljsc).HasColumnName("ljsc");
        }
    }
}
